package com.tongcheng.Controller;

import com.tongcheng.ResultDate;
import com.tongcheng.commons.Contants;
import com.tongcheng.service.Analysissevice;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/Analysis")
@Api(value = "数据分析api",tags = "数据分析")
public class AnalysisController {
//    @Autowired(required = false)
//    private Analysissevice analysissevice;
//    @ApiOperation(value = "根据商家id数据分析",notes = "根据商家id数据分析", response = ResultDate.class)
//    @RequestMapping(value = "/AnalysisBymid",method = RequestMethod.GET,produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
//    public ResultDate AnalysisBymid(Long merchant_id){
//        List<Map> mapList=analysissevice.AnalysisBymid(merchant_id);
//        ResultDate resultDate=new ResultDate();
//        resultDate.setCode(Contants.SUCCESS);
//        resultDate.setMsg("添加成功");
////        resultDate.setData();
//        return  resultDate;
//    }
//    @ApiOperation(value = "数据分析",notes = "数据分析", response = ResultDate.class)
//    @RequestMapping(value = "/AnalysisBymid",method = RequestMethod.GET,produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
//    public ResultDate Analysis(){
//        List<Map> mapList=analysissevice.Analysis();
//        ResultDate resultDate=new ResultDate();
//        resultDate.setCode(Contants.SUCCESS);
//        resultDate.setMsg("添加成功");
////        resultDate.setData();
//        return  resultDate;
//    }
}
